import instance from "./request";
//请求首页数据
export function getIndexDataApi(){
     return  instance.get('/index/index')
}
//请求专题页面数据

export function getTopicDataApi(params){
    return  instance.get('/topic/list',{params:params})
}

//请求历史搜索和热门搜索的数据
export function getSearchApi(){
    return  instance.get('/search/index')
}
//清除历史记录
export function ClearApi(){
    return  instance.post('/search/clearhistory')
}
//实时搜索
export function getInputApi(params){
    return  instance.get('/search/helper',{params:params})
}
// 搜索框商品搜索
export function getGoodListApi(params){
    return  instance.get('/goods/list',{params:params})
}

//请求商品详情
export function getDetailApi(params){
    return  instance.get('/goods/detail',{params:params})
}

  